package user

import org.springframework.cloud.contract.spec.Contract

Contract.make {
    request {
        method("GET")
        url("/api/users/social/account") {
            queryParameters {
                parameter("username", "1")
            }
        }
    }
    response {
        status(200)
        body("""
            [              
                "1",
                "1",
                "1",
                1,
                "zhang",
                "http://www.test.com",
                "http://www.test.com/image.png",
                "sfsfljnjbfs",
                "asmdnaf",
                "njkcbvhjbbh",
                1148375
                
            ]
        """)
        bodyMatchers {
            jsonPath('$[*]', byType())
        }
        headers {
            contentType(applicationJson())
        }
    }
}
